<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>longin</title>
	<%@ include file="/common/meta.jsp"%>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#submit").click(function(){
				if($("#account").val() == ""){
					alert("用户名不能为空~！");
					$("#account").focus();
					return false;
				}else if($("#passwd").val() == ""){
					alert("用户密码不能为空~！");
					$("#passwd").focus();
					return false;
				}
				return true;
			});
		});
	</script>
  </head>
  
  <body>
  	<s:form action="loginAction" namespace="/user" method="post">
  		<s:textfield id="account" name="account" label="帐号"/>
  		<s:password id="passwd" name="passwd" label="密码"/>
  		<s:submit id="submit" value="登录"/>
  	</s:form> 
  </body>
</html>
